/*
 * DiscountSale.h
 *   This is the file discountsale.h.
 *   This is the interface for the class DiscountSale.
 *
 *  Created on: Mar 1, 2014
 *      Author: Anthony Varghese - This is from the Savitch book
 */

#ifndef DISCOUNTSALE_H_
#define DISCOUNTSALE_H_

#include "Sale.h"

namespace SavitchSale {

class DiscountSale: public Sale {
public:
	DiscountSale();
	DiscountSale(double thePrice, double theDiscount);
	//Discount is expressed as a percent of the price.
	//A negative discount is a price increase.
	double getDiscount() const;
	void setDiscount(double newDiscount);
	double bill() const;
private:
	double discount;

};

} /* namespace SavitchSale */

#endif /* DISCOUNTSALE_H_ */
